package cn.kone.system.mapper;

import cn.kone.system.domain.Permission;
import cn.kone.system.query.PermissionQuery;

import java.util.List;

public interface PermissionMapper {

    //查询单个
    Permission findOne(Long id);

    //查询所有
    List<Permission> findAll();

    //新增
    void addPermission(Permission permission);

    //修改
    void updatePermission(Permission permission);

    //删除
    void deletePermission(Long id);

    //高级查询+分页查询
    List<Permission> pageQuery(PermissionQuery permissionQuery);

    //批量删除用户信息
    void batchDeletePermission(Long[] ids);

    //通过sn编码维护权限
    Permission selectBySn(String permissionSn);
}
